﻿namespace ODM.Data.Model
{
    public class UnitValue<T> : Unit
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="UnitValue&lt;T&gt;"/> class.
        /// </summary>
        public UnitValue()
            : base()
        {

        }

        /// <summary>
        /// Initializes a new instance of the <see cref="UnitValue&lt;T&gt;"/> class.
        /// </summary>
        /// <param name="unit">The unit.</param>
        /// <param name="value">The value.</param>
        public UnitValue(Unit unit, T value)
            : base(unit)
        {
            this.Value = value;
        }

        public UnitValue(UnitValue<T> source)
            : base(source)
        {

            this.Value = source.Value;
        }

        public T Value { get; set; }
    }
}
